﻿using System.Collections.Generic;

namespace wires_as_objects
{
    class Board
    {
        private List<IWire> _wires = new List<IWire>();


        protected Wire<T> CreateWire<T>()
        {
            var w = new Wire<T>(this.GetType().Name);
            _wires.Add(w);
            return w;
        }


        public IEnumerable<IWire> Wires { get { return _wires; } }
    }
}